package cn.good.yan.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * 4. SentinelResource 自定义限流处理逻辑
 *
 * @author shengren.yan
 * @create 2024-01-29
 */
public class CustomerBlockHandler {

    public static String handleException(BlockException exception) {
        return "自定义的限流处理信息......限流方法1";
    }

    public static String handleException2(BlockException exception) {
        return "自定义的限流处理信息......限流方法2";
    }

    public static String handleException3(String p1, String p2, BlockException exception) {
        System.out.println(p1);
        return "自定义的限流处理信息------限流方法3" ;
    }

}
